package com.yifeng.repo.base.api;

import lombok.Data;

import java.util.List;

/**
 * Created by daibing on 2022/7/29.
 */
@Data
public class PageResult<E> {
    private int pageNo;
    private int pageSize;
    private int totalPage;
    private long totalSize;
    private List<E> result;

    public PageResult() {
        this(1, 10);
    }

    public PageResult(int pageNo, int pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
